import java.util.ArrayList;
import java.util.List;

public class Solution412 {
    private static final String  time3= "Fizz";
    private static final String  time5= "Buzz";
    private static final String  time15= "FizzBuzz";

    public List<String> fizzBuzz(int n) {
        List<String> ans=new ArrayList<>();
        for (int i = 1; i <= n; i++) {
            if (i%3==0){
                if (i%15==0) {
                    ans.add(time15);
                }else{
                    ans.add(time3);
                }
                continue;
            }
            if (i%5==0){
                ans.add(time5);
                continue;
            }
            ans.add(String.valueOf(i));
        }
        return ans;
    }

    public static void main(String[] args) {
        System.out.println(new Solution412().fizzBuzz(15));
    }
}
